type Key = string | number | symbol
type Obj = object
export function isValidKey(key: Key, obj: Obj): key is keyof typeof obj {
  return key in obj
}
